package com.neuedu.corejava.ch7;

public abstract class Employee {
	    // 名称
		private String name;
		// 性别
		private String sex;
		// 年龄
		private int age;
		// 电话
		private String phone;

		

		public Employee() {
			super();
		}

		public Employee(String name, String sex, int age, String phone) {
			super();
			this.name = name;
			this.sex = sex;
			this.age = age;
			this.phone = phone;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getSex() {
			return sex;
		}

		public void setSex(String sex) {
			this.sex = sex;
		}

		public int getAge() {
			return age;
		}

		public void setAge(int age) {
			this.age = age;
		}

		public String getPhone() {
			return phone;
		}

		public void setPhone(String phone) {
			this.phone = phone;
		}

		// 为公司工作
//		public void work() {
//			System.out.println(this.getName()+"Employee搬砖");
//		}
		
		public abstract void work() ;
			


}
